<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterMerchantEntryTableInfoBillMOney extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('mybank_entry', function (Blueprint $table) {
            $table->integer('remainBillAmount')
                  ->default(0)
                  ->after('remainBrokerage')
                  ->comment('剩余账单金额, 需要支付的金额');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('mybank_entry', function (Blueprint $table) {
            $table->dropColumn('remainBillAmount');
        });
    }
}
